package com.example.ndkjnidemo.home.exception;

/**
 * Created by guxiuzhong on 2020/9/23.
 */
public class JNIException {

    // JNI Config 3 加载的jni库，库名：libndk-jni.so ,加载的时候省略lib和.so
    static {
        System.loadLibrary("ndk-jni");
    }

    public native void nativeInvokeJavaException();

    public native void nativeThrowException() throws Exception;

    public int getStingLen() {
        String s = null;
        return s.length();
    }
}
